/**
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */
package com.poltman.dscentral.db.service.pm.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.poltman.dscentral.db.entity.pm.MainMenuLabelsEntity;
import com.poltman.dscentral.db.exceptions.RepositoryAccessException;
import com.poltman.dscentral.db.exceptions.RepositoryException;
import com.poltman.dscentral.db.repository.pm.MainMenuLabelsRepository;
import com.poltman.dscentral.db.service.pm.MainMenuLabelsService;


/**
 * 
 * @author z.ciok@poltman.com
 * @version $Revision: 1664 $
 *
 */
@Repository
@Service("mainMenuLabelsService")
public class MainMenuLabelsServiceImpl implements MainMenuLabelsService {
	
	private static Logger log = Logger.getLogger(MainMenuLabelsServiceImpl.class);
	
	@Autowired
	private MainMenuLabelsRepository repository;
	
	@Override
	public MainMenuLabelsEntity findByKeyAndLanguageCode(String key, String languageCode) throws RepositoryAccessException, RepositoryException {
		return repository.findByKeyAndLanguageCode(key, languageCode);
	}

	@Override
	public List<String> findAllDistinct() throws Exception {
		return repository.findAllDistinct();
	}
}
